package remote;
import java.net.MalformedURLException;  
import java.rmi.Naming;  
import java.rmi.NotBoundException;  
import java.rmi.RemoteException;  
public class FibClient {    
    public static void main(String[] args) {  
        String url = "//192.168.1.140:8804/SAMPLE-SERVER";  
        try {  
            Fib calc = (Fib) Naming.lookup(url);
            String s=calc.FirstMethod();
            System.out.println(s);
            System.out.println("I am also ready!");
        } catch (MalformedURLException | RemoteException | NotBoundException e) {  
            e.printStackTrace();  
        }
    }  
} 
